<?php
/**
 * Created by PhpStorm.
 * User: yulin
 * Date: 2018/6/19
 * Time: 下午1:21
 */
?>
<div class="g-col g-col-2">
  <article class="mod mod-news-media-detail">
    <header>
      <h2 class="b"><?= $data['title'] ?></h2>
      <time><?= date('Y-m-d', $data['created']) ?></time>
    </header>
    <div class="rich">
      <div class="par parsys">
        <div class="textimage">
          <div class="mod mod-text-image skin-text-only clearfix">
            <div class="mod mod-media-lightbox">
              <div class="content rich">
                <?= $data['content'][0] ?>
                <?php if (!empty($data['explore'])) { ?>
                  <h3>More to explore</h3>
                  <ul>
                    <?php foreach ($data['explore'] as $item) { ?>
                      <li><a href="<?= $item['url'] ?>"><?= $item['title'] ?></a></li>
                    <?php } ?>
                  </ul>
                <?php } ?>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php if (!empty($data['references'])) {?>
      <div class="references">
        <div class="mod mod-references" id="references">
          <div class="b-disclaimer rich">
            <strong>References</strong>
            <?php foreach ($data['references'] as $k => $item) { ?>
              <p id="footnote-<?= $k+1 ?>"></p>
              <p><b><?= $k+1 ?></b>&nbsp;<?= $item['content'] ?></p>
            <?php } ?>
          </div>
        </div>
      </div>
    <?php } ?>
  </article>
</div>
